BL31: Use helper function to save registers in SMC handler
authorSoby Mathew <[email protected]>
Fri, 16 Nov 2018 15:43:34 +0000 (15:43 +0000)
committerSoby Mathew <[email protected]>
Wed, 5 Dec 2018 10:40:08 +0000 (10:40 +0000)
commit01fc1c24b9a03c519efae4d006a71c350c0529fa
treec6bf51fa11d0b4e8c59dd2c968f88b329d4b12b4
parent6d422c3e2b80cf4de96b5ad824e84382be5fa52f
BL31: Use helper function to save registers in SMC handler

Use the helper function `save_gp_registers` to save the register
state to cpu_context on entry to EL3 in SMC handler. This has the
effect of saving x0 - x3 as well into the cpu_context which was
not done previously but it unifies the register save sequence
in BL31.

Change-Id: I5753c942263a5f9178deda3dba896e3220f3dd83
Signed-off-by: Soby Mathew <[email protected]>
bl31/aarch64/runtime_exceptions.S